package com.examples; import android.annotation.SuppressLint; import android.app.Activity; import android.os.Bundle; import android.webkit.WebChromeClient; import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; public class Main extends Activity { /** Called when the activity is first created. */ @SuppressLint("SetJavaScriptEnabled") @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main); WebView webView = (WebView) this.findViewById(R.id.webview); WebSettings webSettings = webView.getSettings(); webSettings.setJavaScriptEnabled(true); webSettings.setBuiltInZoomControls(true); webView.requestFocusFromTouch(); webView.setWebViewClient(new WebViewClient()); webView.setWebChromeClient(new WebChromeClient()); // Load the URL webView.loadUrl("file:///android_asset/rgraphview.html"); } }